<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="<%=path%>/CSS/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="<%=path%>/easyUI1.4.1/jquery-1.8.2.js"></script>
<script type="text/javascript">
//IE不支持console对象，此代码仅为测试使用
///////////////////////////////////////
window.console = window.console || (function () {
var c = {}; c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile  
= c.clear = c.exception = c.trace = c.assert = function () { };  
return c;  
})();  
$(function(){	
	//顶部导航切换
	$(".nav li a").click(function(){
		$(".nav li a.selected").removeClass("selected")
		$(this).addClass("selected");
	})	
})	
</script>
<style type="text/css">
.admin{float: right;width: 400px; height: 45px;text-align: right;line-height: 45px;color: #99bdec;padding-right: 40px}
.admin a{cursor: pointer;color: #99bdec;}
</style>
</head>

<body style="background-color: #3c4351">

	<div class="dialog">
	
	</div>
        
	<div onclick="openDiv()" class="admin" id="admin" style="padding-right: 100px;width: 400px;" >
	    <ul class="admin-detail">
	    	<li style="text-align: left;height: 45px;font-size: 13px;cursor:pointer;">
	    		<input id="companyID_id" value="${CompanyId}"style="display:none"/>
	    		<img width="15px" height="12px"  src="<%=path%>/images/index/zz.png" >&nbsp;
	    		 组织：<a style="font-size: 13px;width: 400px"id="bottom_Company_a_id">${CompanyName}</a>
	    	</li>
	    </ul>
    </div>
    
 
    <div class="admin" style="padding-right: 10px;width: 200px">
	    <ul>
	    	<li style="text-align: left;height: 45px;font-size: 13px;cursor:pointer;">
	    		<img width="15px" height="12px" src="<%=path%>/images/index/xt.png" >&nbsp;
	    		  系统：<a style="font-size: 13px;">驾校管理系统</a>
	    	</li>
	    </ul>
    </div>    

</body>

<script type="text/javascript">
var $bottom_companyId =$("#companyID_id").val();
$(document).ready(function(){
	$('#admin-detail').click(function(){ 
		  /* $(parent.parent.rightFrame.document).load(); */
		window.parent.frames["rightFrame"].location.href="<%=path%>/index.action"; 
		 //$(parent.parent.rightFrame.document).contents().find(".message-box").delay(700).show()
		 	 /* $('.message-box').toggle();  */
	});  
})
//right页面 设置成功session中公司的回调函数
function setCompany(companyID,companyName,flongnumber){
	$.ajax({
        url: '<%=path%>/DrivingSys/right/setCompany.action',
	      type: "post",  
	      dataType:"json",
	      data:{"companyID":companyID,"companyName":companyName,"flongnumber":flongnumber},
	      success: function(json) {
	    	  if(json.success == undefined ||json.success == 'undefined' ){
		        	$.messager.alert('提示','设置组织失败','warning');
	          }else{
	        	$bottom_companyId =companyID;
	    	  	$("#bottom_Company_a_id").text(companyName);
	    	  	$('.message-box').hide();
	          }
	      },
	      error: function(){
	    	  $.messager.alert('提示','请刷新页面重试','warning');
	      }
	});
}


function openDiv(){
	window.parent.frames['rightFrame'].ajaxJSP_searchCompany();
}


</script>
</html>